package com.example.doer.reading.AppDataModel;

import java.util.Date;

/**
 * Created by 严旭江 on 2017/7/20.
 */

public class ReplyAnswer {
    private String userID;
    private String ReplyAnswerID;
    private String FromReplyID;
    private String userName;
    private String answerContent;
    private int favourCount;
    private String time;//回复的时间
    public ReplyAnswer(){

    }

    /**
     *
     * @param theReplyAnswerID   四级ReplyAnswer的ID
     * @param theUserID  回答用户的ID
     * @param theUserName 回答用户的Name
     * @param theAnswerContent 回答的内容
     * @param theDate 回答的日期
     */
    public ReplyAnswer(String theReplyAnswerID, String theUserID, String theUserName, String theFromReplyID, String theAnswerContent, String theDate) {
        this.ReplyAnswerID = theReplyAnswerID;
        this.userID = theUserID;
        this.userName = theUserName;
        this.answerContent = theAnswerContent;
        this.favourCount = 0;
        this.time = theDate;
        this.FromReplyID = theFromReplyID;
    }

    public ReplyAnswer(String theReplyAnswerID, String theUserID, String theUserName, String theFromReplyID, String theAnswerContent) {
        this.ReplyAnswerID = theReplyAnswerID;
        this.userID = theUserID;
        this.userName = theUserName;
        this.answerContent = theAnswerContent;
        this.favourCount = 0;
        this.time = String.format("YYYY-MM-DD",(new Date()));
        this.FromReplyID = theFromReplyID;
    }

    public String getReplyAnswerID() {
        return ReplyAnswerID;
    }

    public void setReplyAnswerID(String replyAnswerID) {
        ReplyAnswerID = replyAnswerID;
    }

    public String getFromReplyID() {
        return FromReplyID;
    }

    public void setFromReplyID(String fromReplyID) {
        FromReplyID = fromReplyID;
    }

    public void setTime(String time) {
        this.time = time;
    }
    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAnswerContent() {
        return answerContent;
    }

    public void setAnswerContent(String answerContent) {
        this.answerContent = answerContent;
    }

    public int getFavourCount() {
        return favourCount;
    }

    public void setFavourCount(int favourCount) {
        this.favourCount = favourCount;
    }

    public String getTime() {
        return time;
    }
}
